package com.aidex.system.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

@Data
@EqualsAndHashCode(callSuper = true)
@Api(tags = "多栏目门户配置")
public class SysPortalConfig extends BaseEntity {

    @ApiModelProperty("小页名称")
    @Excel(name = "名称")
    @NotBlank(message = "名称不允许为空")
    private String name;

    @ApiModelProperty("小页编码")
    @Excel(name = "编码")
    private String code;

    @ApiModelProperty("应用范围")
    @Excel(name = "应用范围" , dictType = "sys_yes_no")
    private String applicationRange;

    @ApiModelProperty("是否默认")
    @Excel(name = "是否默认" , dictType = "sys_yes_no")
    private String isDefault;

    @ApiModelProperty("资源")
    private String resourceId;

    @ApiModelProperty("资源")
    @Excel(name = "资源")
    private String resourceName;

    @ApiModelProperty("系统定义ID")
    private String systemDefinedId;

    @ApiModelProperty("配置信息")
    private String content;

    @ApiModelProperty("排序")
    @Excel(name = "排序")
    private Long sort;

    @ApiModelProperty("保存方式")
    private String saveType;

    @ApiModelProperty("状态")
    private String status;
}
